from os import replace
from django.conf.urls import url
from django.urls import path, include
from django.urls.conf import re_path
from apps.user import views
from django.contrib.auth.decorators import login_required

urlpatterns = [
    re_path(r'^register$', views.register, name='register'),
    re_path(r'^register_handle$', views.register_handle),
    re_path(r'^ajax_experience_username$', views.ajax_experience_username),
    re_path(r'^active/(?P<token>.*)$', views.active),
    re_path(r'^login$', views.Login.as_view(), name='login'),
    re_path(r'^$', views.user, name='user'),
    re_path(r'^user_order/(\d+)?', views.user_order, name='user_order'),
    re_path(r'^user_site$', login_required(views.User_site.as_view()), name='user_site'),
    re_path(r'^logout$', views.logout_btn, name='logout'),

]
